package com.zf.yichat.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "member_level_privilege")
public class MemberLevelPrivilege implements Serializable {
    @Id
    private Long id;

    @Column(name = "level_id")
    private Long levelId;

    /**
     * 等级标题
     */
    private String title;

    /**
     * 等级描述
     */
    private String desc;

    /**
     * 等级图片
     */
    private String image;

    /**
     * 等级url
     */
    private String url;

    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public MemberLevelPrivilege(Long id, Long levelId, String title, String desc, String image, String url, Date createTime) {
        this.id = id;
        this.levelId = levelId;
        this.title = title;
        this.desc = desc;
        this.image = image;
        this.url = url;
        this.createTime = createTime;
    }

    public MemberLevelPrivilege() {
        super();
    }

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return level_id
     */
    public Long getLevelId() {
        return levelId;
    }

    /**
     * @param levelId
     */
    public void setLevelId(Long levelId) {
        this.levelId = levelId;
    }

    /**
     * 获取等级标题
     *
     * @return title - 等级标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置等级标题
     *
     * @param title 等级标题
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * 获取等级描述
     *
     * @return desc - 等级描述
     */
    public String getDesc() {
        return desc;
    }

    /**
     * 设置等级描述
     *
     * @param desc 等级描述
     */
    public void setDesc(String desc) {
        this.desc = desc == null ? null : desc.trim();
    }

    /**
     * 获取等级图片
     *
     * @return image - 等级图片
     */
    public String getImage() {
        return image;
    }

    /**
     * 设置等级图片
     *
     * @param image 等级图片
     */
    public void setImage(String image) {
        this.image = image == null ? null : image.trim();
    }

    /**
     * 获取等级url
     *
     * @return url - 等级url
     */
    public String getUrl() {
        return url;
    }

    /**
     * 设置等级url
     *
     * @param url 等级url
     */
    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}